lst = [['车次', '出发站-到达站', '   出发时间', ' 到达时间', ' 历时时长'],
       ['114', '北京南-天津南', '   18:06', '   18:39', '   00:33'],
       ['G251', '杭州东-深圳北', '   00:15', '   19:49', '   21:25'],
       ['G1523', '郑州东-南昌', '   23:06', '   10:39', '   12:33'],
       ]
new_lst = []

# for i in range(len(lst)):
#     for j in range(len(lst[i])):
#         if lst[i][0] == '114':
#             print(lst[i][j], end='')
#     print()

for i in range(len(lst)):
    for j in range(len(lst[i])):
        print(lst[i][j], end=' ')
    print()

line = input('请选择您要购买的车次:')
name = input("请输入购票人姓名(若是多人购票,请使用','分隔):")
for item in lst[0]:
    print(item, end='')
print()
for i in range(len(lst)):
    for j in range(len(lst[i])):
        if lst[i][0] == line:
            print(lst[i][j], end='')
